<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>1-字符串转义</title>
	</head>
	<body>
		<script type="text/javascript">
			//定义一个字符串
			var str = "中国\n俄罗斯";
			//alert(str);
			//就是你要在字符串中写一个\，必须写2个\
			var city = "陕西省\\西安市\\新城区";
			//alert(city);
			
			//&nbsp;
			var word = "明天       就要放假了";
			alert(word);
		</script>
	</body>
</html>
